<ion-view view-title="联系方式" class="contact" hide-nav-bar="true"
    ng-form="infoPhoneForm">
  <ion-header-bar align-title="center" class="bar-calm">
    <div class="buttons">
      <button class="button head-button button-clear center-btn" ng-click="goBack()">
        <img src="img/order-commit/backIcon.png">
      </button>
    </div>
    <h1 class="title">联系方式</h1>
    <div class="buttons">
      <button class="button head-button button-clear center-btn"
          ng-disabled="infoPhoneForm.$invalid"
          ng-click="goSave()">
        保存
      </button>
    </div>
  </ion-header-bar>
  <ion-content>

    <div style="position: relative;" class="input-box">
      <label class="item item-input name" style="margin-bottom: 0.5em">
          <span style="padding-right:10px">联系电话:</span>
        <input type="text" name="phone"
               ng-model="user.phone"
               ng-required="true"
               placeholder="这里是联系电话">
      </label>
      <button ng-hide="!user.phone" ng-click="clear('4')" class="wf-icon clean"></button>
    </div>

    <div style="position: relative;" class="input-box">
      <label class="item item-input item-select">
        <div class="input-label">
          省
        </div>
        <select ng-model="selectData.currentProvince" ng-change="getCity()"
                ng-options="province as province.provincename for province in selectData.province track by province.provinceid">
        </select>
      </label>
    </div>
    <div style="position: relative;" class="input-box">
      <label class="item item-input item-select">
        <div class="input-label">
          市
        </div>
          <select ng-model="selectData.currentCity"
                  ng-options="city as city.cityname for city in selectData.city track by city.cityid">
          </select>
      </label>
    </div>
    <div style="position: relative;" class="input-box">
      <label class="item item-input name" style="margin-bottom: 0.5em;">
        <input type="text" name="address"
               ng-model="user.address"
               ng-required="true"
               placeholder="详细地址"
               style="margin-right: 15px">
      </label>
      <button ng-hide="!user.address" ng-click="clear('5')" class="wf-icon clean"></button>
    </div>


    <div class="bottom-blank"></div>
  </ion-content>
</ion-view>
